package com.heima.model.wemedia.dtos;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-11-17 14:50
 */
@NoArgsConstructor
@Data
public class WmNewsDownOrUpDto {
    /**
     * id : 6291
     * enable : 0
     */
    //文章id
    @JsonProperty("id")
    @NotNull
    private Integer id;
    //上下架状态 0下架 1上架
    @JsonProperty("enable")
    @NotNull
    @Min(0)
    @Max(1)
    private Short enable;
}
